home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Apache 1.0 / src / Makefile.tmpl < prev    next >
Makefile  |  1995-12-04  |  2KB  |  57 lines

  1. # Apache makefile template (well, suffix).
  2.  
  3. # This is combined with the information in the "Configuration" file
  4. # by the configure script to make the actual Makefile.
  5.  
  6. OBJS= alloc.o http_main.o http_core.o http_config.o http_request.o \
  7.   http_log.o http_protocol.o rfc931.o util.o util_script.o modules.o $(MODULES)
  8.  
  9. .c.o:
  10.     $(CC) -c $(CFLAGS) $(AUX_CFLAGS) $<
  11.  
  12. all: httpd
  13.  
  14. httpd: $(OBJS)
  15.     $(CC) $(LFLAGS) $(AUX_LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS) $(AUX_LIBS)
  16.  
  17. clean:
  18.     rm -f httpd $(OBJS) *pure*
  19.  
  20. dist.tar: 
  21.     # Assure a semi-sensible configuration going out...
  22.     cp Makefile.orig Makefile
  23.     cp modules.c.orig modules.c
  24.     tar cvf dist.tar README INSTALL CHANGES TODO API.html \
  25.         Configuration Configure Makefile.tmpl Makefile *.h *.c
  26.  
  27. #Dependencies
  28. #Core code
  29. $(OBJS): Makefile httpd.h alloc.h conf.h
  30.  
  31. http_config.o http_core.o http_main.o util.o: http_conf_globals.h
  32. http_config.o http_core.o http_main.o: http_config.h http_log.h
  33. http_log.o http_protocol.o http_request.o modules.o: http_config.h
  34. http_config.o http_core.o http_protocol.o http_request.o: http_core.h
  35. http_protocol.o http_request.o util_script.o: http_log.h
  36. http_core.o http_main.o http_protocol.o http_request.o: http_main.h
  37. http_core.o http_main.o http_protocol.o http_request.o: http_protocol.h
  38. http_config.o http_main.o http_request.o: http_request.h
  39. http_main.o: scoreboard.h
  40.  
  41. #Modules
  42. $(MODULES): http_config.h
  43. mod_dld.o: http_conf_globals.h
  44. mod_ai_backcompat.o mod_auth.o mod_auth_dbm.o mod_cgi.o mod_dir.o: http_core.h
  45. mod_imap.o mod_include.o mod_negotiation.o: http_core.h
  46. mod_asis.o mod_auth.o mod_auth_dbm.o mod_cgi.o mod_dir.o: http_core.h
  47. mod_imap.o mod_include.o mod_negotiation.o: http_log.h
  48. mod_asis.o mod_cgi.o mod_dir.o mod_imap.o mod_include.o: http_main.h
  49. mod_asis.o mod_auth.o mod_auth_dbm.o mod_cgi.o mod_dir.o: http_protocol.h
  50. mod_imap.o mod_include.o: http_protocol.h
  51. mod_cgi.o mod_dir.o mod_imap.o mod_include.o mod_negotiation.o: http_request.h
  52. mod_asis.o mod_cgi.o mod_dir.o mod_imap.o mod_include.o: util_script.h
  53.  
  54. #Utils
  55. util.o: http_conf_globals.h
  56. util_script.o: http_core.h http_main.h http_protocol.h util_script.h
  57.